package domain;

import java.util.HashSet;
import java.util.Set;

public class Contact implements IContact{
	private String firstName;
	private String lastName;
	private String email;
	private long id;
	private Address address = new Address();
	private Set<ContactGroup> books = new HashSet<ContactGroup>();
	private Set<PhoneNumber> profiles = new HashSet<PhoneNumber>();
	private int version;
	
	public Contact(){
	}
	public Contact(String firstName, String lastName, String email,
			Address address, Set<ContactGroup> books, Set<PhoneNumber> profiles) {
		this.firstName = firstName;
		this.lastName = lastName;
		this.email = email;
		this.address = address;
		this.books = books;
		this.profiles = profiles;
	}
	public Address getAddress() {
		return address;
	}
	public int getVersion() {
		return version;
	}
	public void setVersion(int version) {
		this.version = version;
	}
	public void setAddress(Address address) {
		this.address = address;
	}
	public String getFirstName() {
		return firstName;
	}
	public void setFirstName(String firstName) {
		this.firstName = firstName;
	}
	public String getLastName() {
		return lastName;
	}
	public void setLastName(String lastName) {
		this.lastName = lastName;
	}
	public long getId() {
		return id;
	}
	public void setId(long id) {
		this.id = id;
	}
	public String getEmail() {
		return email;
	}
	public void setEmail(String email) {
		this.email = email;
	}
	public Set<ContactGroup> getBooks() {
		return books;
	}
	public void setBooks(Set<ContactGroup> books) {
		this.books = books;
	}
	public Set<PhoneNumber> getProfiles() {
		return profiles;
	}
	public void setProfiles(Set<PhoneNumber> profiles) {
		this.profiles = profiles;
	}
	
}
